import {myFetch} from '@/assets/js/utils.js'

export default{
	queryCredit() {
        return myFetch({
            name: 'shopping.sys.showPoint',
        })
    },
    queryHistory() {
    	return myFetch({
            name: 'shopping.sys.pointHistory',
        })
    },
    transferCredit({type, amount, account}) {
    	return myFetch({
            name: 'shopping.sys.point.transfer',
            type,
            amount,
            account
        })
    }
}